# from django.test import TestCase
#
# # Create your tests here.
# def three(name,pwd):
#     def change(fun):
#         def inner():
#             if name=='lhz'and pwd=='123':
#                 res = fun()
#                 return res
#             else:
#                 print('用户名或密码错误')
#                 return False
#         return inner
#     return change
#
# # st='aaabbcccdddrt'
# # t=st[0]
# # co=0
# # dic={}
# # result=''
# # for i in range(len(st)):
# #     if t==st[i]:
# #         co+=1
# #     else:
# #         result+=t+str(co)
# #         t=st[i]
# #         co=1
# # result +=t+str(co)
# #
# # print(result)
#
# #6=1+2+3
# # def func(num):
# #     lis=[]
# #     for i in range(1,num//2+1):
# #         if num%i==0:
# #             lis.append(i)
# #     return sum(lis)==num
# # for i in range(2,1001):
# #     if func(i):
# #         print(i)
#
# st='abababab'
# def fun(st):
#     for i in range(2, len(st)):
#         lis = st.split(st[:i])
#         lis = [item for item in lis if item != '']
#         if len(lis) == 0:
#             print(f'字符串由{st[:i]},重复{len(st) / i}')
#             break
#     else:
#         print(False)
# fun('ababab')
#
#
# lis_a=[1,2,3,4,5,6,7,8,9,10]
# lis=list(filter(lambda item:item[0]%2==1,((i,lis_a[i]) for i in range(len(lis_a)))))
# lis = [ item[1] for item in lis]
# print(lis)
# #
# # a=[1,2,3,4]
# # b=[1,2,3,4,5,6]
# # for item in zip(a,b):
# #     print(item)
# # ko=zip(a,b)
# # print(ko)
# def flist(l=[1]):
#     l.append(1)
#     print(l)
# flist()
# flist()
# from collections import deque
#
# class Queue():
#     def __init__(self):
#         self.item=deque()
#     def append(self,val):
#         return self.item.append(val)
#     def pop(self):
#         return self.item.popleft()
#     def empty(self):
#         return len(self.item)
# #设置一个有长度限制的队列。
# class LimiteQueue():
#     def __init__(self,max):
#         self.max=max
#         self.item = deque()
#     def append(self,val):
#         if len(self.item)<self.max:
#             return self.item.append(val)
#         else:
#             self.pop()
#             self.item.append(val)
#     def pop(self):
#         if len(self.item)>=1:
#             self.item.popleft()
#             return True
#         else:
#             return False
#     def empty(self):
#         return len(self.item)
# q_100=LimiteQueue(10)
# for i in range(1,21):
#     q_100.append(i)
# # print(list(q_100.item))
#
# #栈的实现。
#
# class Stack():
#     def __init__(self):
#         self.item=deque()
#     def push(self,val):
#         return self.item.append(val)
#     def pop(self):
#         return self.item.pop()
# class LimiteStack():
#     def __init__(self,max):
#         self.max=max
#         self.item=deque()
#     def push(self,val):
#         if len(self.item)>=self.max:
#             self.item.popleft()
#             self.item.append(val)
#         else:
#             self.item.append(val)
#     def pop(self):
#         return self.item.pop()
# import os
# lis=os.listdir('../user')
# def fun(path):
#     lis = os.listdir(path)
#     lis2=[]
#     for i in lis:
#         full_path = os.path.join(path,i)
#         if os.path.isdir(full_path):
#             lis2.extend(fun(full_path))
#         else:
#             lis2.append(full_path)
#     return lis2
#
# def change(fun):
#     def inner(*args,**kwargs):
#         print('在执行原函数前可以进行其他操作')
#         res = fun(*args,**kwargs)
#         print('在执行函数后，可以进行的操作')
#         return res
#     return inner
# @change#语法糖作用：1、home=change(home) 2、home('lhz','123')
# def home(name,password):
#     if name=='lhz'and password=='123':
#         print('欢迎来到首页')
#     else:
#         print('用户名或密码错误')
#
# #1-5
# s1=set(str(i) for i in range(1,6) )
# co=0
# for i in range(100,600):
#     s = set( j for j in str(i) )
#     if not (s-s1):#结果是空，说明是1-5中的数字，如果s元素是三位，说明不重复了
#         if len(s)==3:
#             co+=1
#
#
# di={'name':'lhz'}
# d=dict.fromkeys('lhz',[])
# d['l'].append('12')
# print(d)
#
# a=9000
# b=9000
# print(a is b)
# import copy
#
# dic={
#     'name':'lhz',
#     'age':'90',
#     'sex':'男'
# }
# lis = dic.items()
#
# dic=sorted(dic,key=lambda k:dic[k])
#
# lis2=[1,2,3,4,89,56,45,345,323,456,2345,4343,34356,23424454,7868787]
# dic2={}
# for i in lis2:
#     i=str(i)
#     l = len(i)
#     if l>=6:
#         dic2.setdefault(6,[]).append(int(i))
#     else:
#         dic2.setdefault(l,[]).append(int(i))
#
# print(dic2)
# l1=[[1,2,3,4],[1,2,34,3],[12,344,45,6]]
# l2=[]
# for i in l1:
#     l2.extend(i)
# print(l2)
#
# def fun(n):
#     sum=1
#     for i in range(1,n+1):
#         sum*=i
#         yield sum
# print(sum(list(fun(5))))
#
# tui ={'name':23,'age':56}
# res= max(tui,key=lambda keys:tui[keys])
# print(tui[res])
#
# def funs(m):
#     sum=1
#     for i in range(1,m+1):
#         sum*=i
#         yield sum
#
#
# class Person():
#     def __init__(self, name, age):
#         self.name = name
#         self.age = age
#     def __call__(self, *args, **kwargs):
#         print(self.name,self.age,'对象加括号是，调用该函数')
#
# obj = Person('lhz', 23)
# print(obj.name,'拿到对象的名字')
# obj()  # 把对象当作函数调用，执行的是对象中的__call__方法
import time
print(time.localtime().tm_hour)
print(time.localtime().tm_min)

